package com.aatrox.bhsypro.service.impl;

import com.aatrox.bhsypro.dao.UserTalkDao;
import com.aatrox.bhsypro.entity.UserTalk;
import com.aatrox.bhsypro.service.UserTalkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserTalkServiceImpl implements UserTalkService {
    @Autowired
    UserTalkDao dao;

    @Override
    public int insertNewTalk(UserTalk u) {
        int i=dao.insertNewTalk(u);
        return i;
    }

    @Override
    public List selbyid(int vsid, int vtype) {
        List list =dao.selbyid(vsid,vtype);
        return list;
    }

    @Override
    public int upnyid(int tid) {
        int i=dao.upnyid(tid);
        return i;
    }

    @Override
    public int upcpnyid(int tid) {
        int i=dao.upcpnyid(tid);
        return i;
    }
}
